<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <script src="https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script>
</head>

<body>
    <input id="plate" />

    <script>
        $(function () {
            $.ajax({
                url: 'http://127.0.0.1:5000/cncity/大理',
                type: 'get',
                success: function (res) {
                    alert(res[0]['plate_head'])
                    debugger
                    $('#plate').val(res[0]['plate_head'])
                },
                error: function (xhr, status, error) {
                    layer.msg(xhr.responseJSON.message);
                }
            });
        })
    </script>
</body>

</html>